(define-key sgml-mode-map "/" 'sgml-slash)
(define-key sgml-mode-map "\C-c\C-v" 'sgml-validate))
+;;;###autoload
(defun sgml-mode ()
"Major mode for editing SGML.
Makes > display the matching <. Makes / display matching /.
(modify-syntax-entry ?\' "\"" sgml-mode-markup-syntax-table))
(defconst sgml-angle-distance 4000
- "*If non-nil, is the maximum distance to search for matching <
-when > is inserted.")
+ "*If non-nil, is the maximum distance to search for matching <.")
(defun sgml-close-angle (arg)
"Insert > and display matching <."
;;; I doubt that null end tags are used much for large elements,
;;; so use a small distance here.
(defconst sgml-slash-distance 1000
- "*If non-nil, is the maximum distance to search for matching /
-when / is inserted.")
+ "*If non-nil, is the maximum distance to search for matching /.")
(defun sgml-slash (arg)
"Insert / and display any previous matching /.
(and name
(file-name-nondirectory name))))))))
(setq sgml-saved-validate-command command)
- (compile1 command "No more errors"))
+ (compile-internal command "No more errors"))
;;; sgml-mode.el ends here